package com.bite.deom3;

class Money implements Cloneable {
    public float money = 25.6f;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

public class People implements Cloneable {
    public String name;
    public Money m = new Money();

    public People(String name) {
        this.name = name;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        People tmp = (People) super.clone();
        tmp.m = (Money) this.m.clone();
        return tmp;
    }
}
